package com.ashes.brave.controller;

import com.ashes.brave.service.FileSysService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author chengxuhui
 * @description 描述
 */
@Api(tags = "文件处理模组开发")
@RestController
@RequestMapping("/ashes/brave")
public class FileSysController {
    @Autowired
    private FileSysService fileSysService;

    @PostMapping("/uploadFileToOCR")
    @ApiOperation("处理上传文件信息")
    public String uploadFile(@RequestParam("file") MultipartFile file){
        return fileSysService.uploadFileToOCR(file);
    }

}
